package org.dromara.nursing.domain.bo;

import org.dromara.nursing.domain.Contact;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 联系人信息业务对象 ms_contact_info
 *
 * @author Xue
 * @date 2025-03-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Contact.class, reverseConvertGenerate = false)
public class ContactBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long contactId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactName;

    /**
     * 老人姓名
     */
    private String elderName;

    /**
     * 性别
     */
    private Long gender;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 联系人身份证号
     */
    private String idCard;

    /**
     * 与老人关系
     */
    private String relationship;

    /**
     * 是否为紧急联系人
     */
    private Long isEmergencyContact;

    /**
     * 联系人地址
     */
    private String address;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 探访频率
     */
    private String visitFrequency;

    /**
     * 是否接收通知
     */
    private Long receiveNotification;

    /**
     * 备注
     */
    private String remarks;


}
